package xkp.lesson5;

//此时Person类
public abstract  class Person {
	private String name;
	private int age;
	
	//被abstract修饰的方法不能有方法体
	//有抽象方法的类一定是抽象类
	public abstract void eat();
	
	public Person() {}
	
	public Person(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}

}
